//
//  InstallationDetailOwnerAddress.swift
//  ezyform
//
//  Created by MoennigQ on 12/12/2016.
//  Copyright © 2016 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit
import HandyJSON
enum OwnerType: String {
    case individual = "Individual"
    case trustee = "Trustee"
    case corporateBody = "Corporate body"
    case governmentBody = "Government body"
}
enum CoOwnerRelationShipValue: String{
    case partner = "married"
    case familyMenber = "sibling"
    case coowner = "coowner"
}

enum CoOwnerRelationShipName: String{
    case partner = "Partner"
    case familyMenber = "Family member"
    case coowner = "Co-owner"
}
class InstallationDetailOwnerAddress: HandyJSON {
    var type: String  = "" //Individual/Trustee/Corporate body/Government boody
    //type 不是 Individual个人时，是机构功能
    var type_name: String = ""
    //type = Individual个人时，有first_name和last name
    var first_name: String = ""
    var last_name: String = ""
    //
    var name: String = ""
    var address: String = ""
    var state: String = ""
    var post_code: String = ""
    var suburb: String = ""
    var phone: String = ""
    var email: String = ""
    var home_owner_abn: String = ""
    var owner_representative_name: String = ""
    var owner_representative_position: String = ""
    //owner stc unit price
    var price_to_the_home_owner: String = ""
    //CO owner的信息
    var co_owner_first_name: String = ""
    var co_owner_last_name: String = ""
    var co_owner_relation_ship: String = ""
    //owner address
    var address_type_value: String = ""//value
    var address_type: String = ""//name
    var unit_type: String = ""//name
    var unit_type_value: String = ""//value
    var unit_number: String = ""
    var street_number: String = ""
    var street_name: String = ""
    var street_type: String = ""//name
    var street_type_value: String = ""//value
    var address_text: String = ""
    var delivery_type: String = ""
    var delivery_number: String = ""
    required init(){}
}
